projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55e0122
)
Fix treesit-query-validate
author
Yuan Fu
<casouri@gmail.com>
Wed, 21 Sep 2022 01:02:16 +0000
(18:02 -0700)
committer
Yuan Fu
<casouri@gmail.com>
Wed, 21 Sep 2022 01:36:52 +0000
(18:36 -0700)
* lisp/treesit.el (treesit-query-validate): Add a call to
treesit-query-expand so this function works on both sexp and string
query, as expected.
lisp/treesit.el
patch
|
blob
|
history
diff --git
a/lisp/treesit.el
b/lisp/treesit.el
index 709f826f3257fa1580723f3304e150c607b2d40d..9750ac7b7b943fbf40b403e858e85362f6fd93e2 100644
(file)
--- a/
lisp/treesit.el
+++ b/
lisp/treesit.el
@@
-1079,7
+1079,7
@@
to the offending pattern and highlight the pattern."
(message (nth 0 data))
(start (nth 1 data)))
(erase-buffer)
- (insert
query
)
+ (insert
(treesit-query-expand query)
)
(goto-char start)
(search-forward " " nil t)
(put-text-property start (point) 'face 'error)